import React from "react"
import type { Meta, StoryObj } from "@storybook/react"

import QuestionInfo from "../../components/QuestionComponents/QuestionInfo/QuestionInfo"

const meta = {
    title: "Question/QuestionInfo",
    component: QuestionInfo
} satisfies Meta<typeof QuestionInfo>

export default meta

// 定义 Story 类型
type Story = StoryObj<typeof QuestionInfo>

// 默认 Story
export const Default: Story = {}

// 设置 props 的 Story
export const SetProps: Story = {
    args: {
        title: "hello",
        desc: "world"
    }
}

// 换行描述的 Story
export const DescBreakLine: Story = {
    args: {
        title: "hello",
        desc: "world\nworld\nworld" // 换行
    }
}
